#!/usr/bin/env bash

curl -X POST -H "Content-Type:application/json" -H "x-zc-major-domain-id:16" -H "x-zc-sub-domain-id:51" -H "X-Zc-Timeout:9999999" -H "x-zc-developer-id:333" \
-d '{"wifi_id": "8650011000100010001000000244db09b200"}' \
"http://localhost:8088/ac-julink-ps/certify"


curl -X POST -H "Content-Type:application/json" -H "x-zc-major-domain-id:16" -H "x-zc-sub-domain-id:51" -H "X-Zc-Timeout:9999999" -H "x-zc-developer-id:333" \
-d '{"wifi_id": ""}' \
"http://localhost:8088/ac-julink-ps/certify"



curl -X POST -H "Content-Type:application/json" -H "x-zc-major-domain-id:16" -H "x-zc-sub-domain-id:51" -H "X-Zc-Timeout:9999999" -H "x-zc-developer-id:333" \
-d '{"token": "2989b53fd2694eccaf1b9e79104fcc42"}' \
"http://ac-new-ps:9096/ac-julink-ps/verify"

curl -X POST -H "Content-Type:application/json" -H "x-zc-major-domain-id:16" -H "x-zc-sub-domain-id:51" -H "X-Zc-Timeout:9999999" -H "x-zc-developer-id:333" \
-d '{"wifiid": "5fad31c3316744b3a03b84af19632823"}' \
"http://localhost:8088/ac-julink-ps/writeTestData"

curl -X POST -H "Content-Type:application/json" -H "x-zc-major-domain-id:16" -H "x-zc-sub-domain-id:51" -H "X-Zc-Timeout:9999999" -H "x-zc-developer-id:333" \
-d '{"wifiid": "86500410004000400040000010cd13a8b384"}' \
"http://ac-new-ps:9096/ac-julink-ps/getWifiStats"

curl -X POST -H "Content-Type:application/json" -H "x-zc-major-domain-id:16" -H "x-zc-sub-domain-id:51" -H "X-Zc-Timeout:9999999" -H "x-zc-developer-id:333" \
-d '{"wifilist": ["5fad31c3316744b3a03b84af19632823", "dsadsad", "fddf"]}' \
"http://localhost:9096/ac-julink-ps/getWifiListStats"

curl -X POST -H "Content-Type:application/json" -H "x-zc-major-domain-id:16" -H "x-zc-sub-domain-id:51" -H "X-Zc-Timeout:9999999" -H "x-zc-developer-id:333" -d '{"wifiid": "5fad31c3316744b3a03b84af19632823", "wgpsStatus": {"wifiid":"5fad31c3316744b3a03b84af19632823","netid":1,"owner":"aaa","peeraddr":"bbb","protocol":"ccc","stat":2,"wifiver":"eee","subDomainId":0,"majorDomainId":0,"protVer":"ddd"}}' "http://localhost:8088/ac-julink-ps/wifiOnline"

curl -X POST -H "Content-Type:application/json" -H "x-zc-major-domain-id:16" -H "x-zc-sub-domain-id:51" -H "X-Zc-Timeout:9999999" -H "x-zc-developer-id:333" -d '{"wifiid": "5fad31c3316744b3a03b84af19632823", "wgpsStatus": {"wifiid":"5fad31c3316744b3a03b84af19632823","netid":1,"owner":"aaa","peeraddr":"bbb","protocol":"ccc","stat":1,"wifiver":"eee","subDomainId":0,"majorDomainId":0,"protVer":"ddd"}}' "http://localhost:8088/ac-julink-ps/wifiOnline"

curl -X POST -H "Content-Type:application/json" -H "x-zc-major-domain-id:16" -H "x-zc-sub-domain-id:51" -H "X-Zc-Timeout:9999999" -H "x-zc-developer-id:333" -d '{"wifiid": "5fad31c3316744b3a03b84af19632823", "wgpsStatus": {"netid":1,"owner":"aaa","peeraddr":"bbb","protocol":"ccc","stat":1,"wifiver":"eee","subDomainId":0,"majorDomainId":0,"protVer":"ddd"}}' "http://localhost:8088/ac-julink-ps/wifiOnline"

redis-cli -c -h 10.18.222.16 -p 7000 -a "Hisense2021redis"

mysql -uroot -pR4G2Ee4 -h10.18.222.16 -P33306

bin/kafka-console-consumer.sh --bootstrap-server 10.18.222.16:9095 --topic ac_wifi_online_status --from-beginning
bin/kafka-console-producer.sh --broker-list 10.18.222.16:9095 --topic ac_wifi_online_status

